@echo off
set CONFIG=%1 
if %1. == . set CONFIG=Release

echo.
echo Configuration=%CONFIG%
echo Building shelltwit
msbuild shelltwit.csproj /p:Configuration=%CONFIG%
echo.
echo Merging modules
"C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe" /ndebug /out:output\twit.exe bin\%CONFIG%\twit.exe bin\%CONFIG%\BitLyHelper.dll bin\%CONFIG%\shelltwitlib.dll
echo.
echo Deploying to bats artech
copy .\output\twit.exe "\_sebastian\bats artech"